Tween Types
Each of the tween types supported by QuickTime belongs to one of these categories:
-
Numeric tween types, which have pairs of numeric values, such as long integers, as input. For these types, linear interpolation is used to generate output values.
-
QuickDraw tween types, most of which have pairs of QuickDraw structures, such as points or rectangle, as input. For these types, one or more structure elements are interpolated, such as the
h
and
v
values for points, and each element that is interpolated is interpolated separately from others.
-
3D tween types, which have a QuickDraw 3D structure such as
TQ3Matrix4x4
or
TQ3RotateAboutAxisTransformData
as input. For these types, a specific 3D transformation is performed on the data to generate output.
-
The polygon tween type, which takes three four-sided polygons as input. One polygon (such as the bounds for a sprite or track) is transformed, and the two others specify the start and end of the range of polygons into which the tween operation maps it. You can use the output (a
MatrixRecord
data structure) to map the source polygon into any intermediate polygon. The intermediate polygon is interpolated from the start and end polygons for each particular time in the tween duration.
-
Path tween types have as input a QuickTime vector data stream for a path. (For information about QuickTime vectors, see
"Tween Components and Native Tween Types."
) Four of the path tween types also have as input a percentage of path's length; for these types, either a point on the path or a
MatrixRecord
data structure is returned. Two other path tween types treat the path as a function: one returns the
y
value of the point on the path with a given
x
value, and the other returns the
x
value of the point on the path with a given
y
value.
-
The list tween type has as input a QT atom container that contains leaf atoms of a specified atom type. For this tween type, the duration of the tween operation is divided by the number of leaf atoms of the specified type. For time points within the first time division, the data for the first leaf atom is returned; for the second time division, the data for the second leaf atom is returned; and so on. The resulting tween operation proceeds in discrete steps (one step for each leaf atom), instead of the relatively continuous tweening produced by other tween types.
For complete definitions of the tween types supported by QuickTime, see
"Native Tween Types Processed by QuickTime"
and
"Tween Components for QuickDraw 3D"
.
© 1999 Apple Computer, Inc.| Previous | Chapter Contents | Chapter Top | Next |